C Program to Count Occurrence of Characters in a String